package com.hly.versioncontroladmin.result;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class PageQuery<T> {
    private Integer pageNum;
    private Integer pageSize;

    public Page<T> builderPage(){
        return new Page<T>(pageNum, pageSize);
    }
}
